﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.AspNetCore.DataProtection.KeyManagement;
using Microsoft.AspNetCore.Http.HttpResults;
using OfficialWeb.Core;

using SqlSugar;


namespace OOS.Core.Order
{
    /// <summary>
    /// 订单管理
    /// </summary>
    [SugarTable("order_basic")]
    public class OrderBasic: IdAndUserIntAndIsDeletedBase
    {
        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(ColumnName = "number")]
        public String Number { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }
        /// <summary>
        /// 地址id
        /// </summary>
        [SugarColumn(ColumnName = "address_id")]
        public int AddressId { get; set; }
        /// <summary>
        /// 订单状态，1，已支付；2，已发货；3，已收货
        /// </summary>
        [SugarColumn(ColumnName = "order_status")]
        public int OrderStatus {  get; set; }
        /// <summary>
        /// 实收金额
        /// </summary>
        [SugarColumn(ColumnName = "total_money")]
        public double TotalMoney { get; set; }
        /// <summary>
        /// 订单详情
        /// </summary>
        [SugarColumn(ColumnName = "order_detail")]
        public String OrderDetail { get; set; }
        /// <summary>
        /// 买家留言
        /// </summary>
        [SugarColumn(ColumnName = "user_text")]
        public String UserText { get; set; }
    }
}
